﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Fulcrum.UnitTests;
using System.Reflection;

namespace Fulcrum.ViewModelGenerator.UnitTests
{
    [DeploymentItem("ViewModel.t4")]
    [DeploymentItem("ViewModelConfig.xml")]
    [DeploymentItem("TestSample.Generated.cs")]
    [DeploymentItem("TestSample2.Generated.cs")]
    [DeploymentItem("TestSample3.Generated.cs")]
    [DeploymentItem("TestSample4.Generated.cs")]
    [TestClass]
    public class GeneratedCodeTests : FulcrumGeneratedCodeTests
    {
        public GeneratedCodeTests()
        {
            // nothing
        }

        [TestMethod]
        public void ValidateDifferentInGeneratedCode()
        {
            ValidateGeneratedCode();
        }

        protected override GenerationUnit CreateGenerationUnit(string path)
        {
            var genUnit = new ViewModelGeneratorGenerationUnit();
            var settings = (ViewModelGeneratorSettings)genUnit.Settings;

            settings.ConfigFileName = "ViewModelConfig.xml";

            return genUnit;
        }

    }
}
